﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ConsultarConstructores.aspx.cs" Inherits="abmConstructor_ConsultarConstructores" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link rel="stylesheet" type="text/css" href="../estilos/estilos.css" />
    <title>Consultar constructores</title>
    </head>
<body id="main_body" style="margin-left: 0px; margin-top: 5px; margin-right: 0px;
    margin-bottom: 0px; background-color: white;">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
        <tbody>
            <tr>
                <td>
                    <div id="div_header" style="height: 70px;" class="title">
                        <table border="0" cellpadding="0" cellspacing="0" class="imagen_header">
                            <tbody>
                                <tr class="row_top">
                                    <td>
                                        <div style="width: 200">
                                        </div>
                                    </td>
                                    <td>
                                    </td>
                                   <td style="text-align: right" >
                                        <div class="loginName">
                                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>&nbsp;&nbsp;
                                        <a href="../Salir.aspx"><img alt="" src="../images/salir.gif" border="0"  />&nbsp;Salir</a>&nbsp;&nbsp;
                                       |<a href="../CambiarClave.aspx">&nbsp;Cambiar Clave</a>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div id="div_body" style="border-style: none; border-color: inherit; border-width: 0px; position: relative; left: 0px; top: -26px; align: center;
                        width: 760px; height: 500px; overflow-y: auto; overflow-x: hidden;
                        z-index: 20">
                        <form id="form2" runat="server">
                        <table id="centrar" align="center" cellpadding="0" cellspacing="0" style="text-align: left;
                            text-indent: 2px; width: 100%;" class="text">
                            <tr>
                                <td>
                                    
                                            <table style="width: 100%; height: 166px; margin-right: 0px;" 
                                                    align="center">
                                                     <tr>
                                            <td style="height: 10px" >
                        Administrar 
                                                constructores &gt;&gt; Consultar constructores</td>
                                        </tr>
                                                     <tr>
                                            <td style="height: 10px" class="table_header_text_center">
                                                Consultar constructores</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Tipo
                                                <asp:DropDownList ID="TiposDoc" runat="server" Height="16px" Width="104px" 
                                                    CssClass="input100px">
                                                </asp:DropDownList>
                                                &nbsp;Nro. de Doc. <asp:TextBox ID="NroDoc" runat="server" Width="99px" 
                                                   CssClass="input100px" ValidationGroup="groupBuscar"></asp:TextBox>&nbsp;
                                                   
                                                    <asp:RequiredFieldValidator ID="validatorNroDoc" runat="server" ControlToValidate="NroDoc"
                                                                    ErrorMessage="Debe especificar un numero de documento a buscar." ValidationGroup="groupBuscar">*</asp:RequiredFieldValidator>
                                                                      <asp:RegularExpressionValidator ID="regularNroDoc" runat="server" ControlToValidate="NroDoc"
                                                   ValidationGroup="groupBuscar" ErrorMessage="Formato de número inválido" ValidationExpression="^(-)?\d+(\.\d\d)?$">*</asp:RegularExpressionValidator>
                                                   
                                                   <asp:Button ID="ButtonBuscar" runat="server" Height="20px" Text="Buscar" 
                                                    Width="75px" CssClass="small_button" onclick="botonBuscar_Click" ValidationGroup="groupBuscar"/>
                                                &nbsp;
                                                 <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="groupBuscar" 
                                                    runat="server" 
                                                    Height="16px" CssClass="text"/> 
                                                </td>
                                        </tr>
                                        <tr align="left">
                                            <td style="height: 10px" >
                                                <asp:GridView ID="grdConstructores" runat="server" AllowPaging="True" 
                                                    AllowSorting="True" AutoGenerateColumns="False" BackColor="White" 
                                                    BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                                                    EnableModelValidation="True" OnPageIndexChanging="grdConstructores_PageIndexChanging" 
                                                    OnRowDeleting="grdConstructores_RowDeleting" OnRowEditing="grdConstructores_RowEditing" 
                                                    OnSorting="grdConstructores_Sorting" PageSize="5" Width="753px">
                                                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                                                    <Columns>
                                                        <asp:BoundField DataField="nroDocumento" HeaderText="Tipo y Nro. de Documento" 
                                                            SortExpression="nroDocumento" >
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="nombCliente" HeaderText="Nombre" 
                                                            SortExpression="nombCliente" >
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="apeCliente" HeaderText="Apellido" 
                                                            SortExpression="apeCliente" >
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="email" HeaderText="E-Mail" 
                                                            SortExpression="email" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                        </asp:BoundField>
                                                            <asp:BoundField DataField="celular" HeaderText="Celular" 
                                                            SortExpression="celular" >
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                        </asp:BoundField>
                                                        <asp:CommandField HeaderText="Acciones" ShowDeleteButton="True" 
                                                            ShowEditButton="True" DeleteText="Eliminar" EditText="Modificar" >
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                        </asp:CommandField>
                                                    </Columns>
                                                    <RowStyle BackColor="White" ForeColor="#003399" HorizontalAlign="Center" />
                                                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                                                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                                                    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                                                </asp:GridView>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 10px">
                                            <hr/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right">
                                                <asp:Button ID="botonAceptar" runat="server" Text="Aceptar" 
                                                    CssClass="small_button" OnClick="botonCancelar_Click" />
                                            </td>
                                        </tr>
                                       
                                      
                                    </table>
                                   
                                </td>
                            </tr>
                        </table>
                        </form>
                    </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="0" width="760px" style="background-color: white;
                        text-align: center;">
                        <tbody>
                            <tr>
                                <td>
                                    <img src="../images/footer2.gif" height="26" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</body>
</html>




